/**
 * @Author: lzy
 * @Date: 2020-01-16
 * @Last Modified by:   lzy
 * @Last Modified time: 2020-01-16 14:10:00
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 礼品入库单查询
export const getOutboundOrder = params => axios.get(`${SERVER.MEMBERS_CLUB}/statistics/comprehensiveQuery/searchOutboundOrder`, {
  params
});

// 礼品出库单查询
export const getWarehousingEntry = params => axios.get(`${SERVER.MEMBERS_CLUB}/statistics/comprehensiveQuery/searchWarehousingEntry`, {
  params
});

// 盈亏情况查询
export const getProfitAndLoss = params => axios.get(`${SERVER.MEMBERS_CLUB}/statistics/comprehensiveQuery/searchProfitAndLoss`, {
  params
});

// 盈亏情况查询
export const getPutAndOut = params => axios.get(`${SERVER.MEMBERS_CLUB}/statistics/comprehensiveQuery/searchPutAndOut`, {
  params
});

// 补打入库单据
export const bdrkPrint = (inBoundId, giftId) => axios.post(`${SERVER.MEMBERS_CLUB}/statistics/comprehensiveQuery/bdrkPrint?inBoundId=${inBoundId}&giftId=${giftId}`);



// 补打出库单据
export const bdckPrint = (outboubdId, outboubdDetailId) => axios.post(`${SERVER.MEMBERS_CLUB}/statistics/comprehensiveQuery/bdckPrint?outboubdId=${outboubdId}&outboubdDetailId=${outboubdDetailId}`);
